package com.gateway.common.dto.sync;

import com.gateway.common.dto.BaseSyncData;
import com.gateway.common.enums.DataEventTypeEnum;

/**
 * @program: api-gateway
 * @description:
 * @author: YuKai Fan
 * @create: 2025/1/27 21:12
 **/
public class ApiSyncData implements BaseSyncData {

    /**
     * api编码
     */
    private String apiCode;

    private Integer version;

    /**
     * 环境变量
     */
    private String env;

    private DataEventTypeEnum eventType;

    public ApiSyncData() {
    }

    public ApiSyncData(String apiCode, Integer version, String env, DataEventTypeEnum eventType) {
        this.apiCode = apiCode;
        this.version = version;
        this.env = env;
        this.eventType = eventType;
    }

    public String getApiCode() {
        return apiCode;
    }

    public Integer getVersion() {
        return version;
    }

    public String getEnv() {
        return env;
    }

    @Override
    public DataEventTypeEnum getEventType() {
        return eventType;
    }

    public void setApiCode(String apiCode) {
        this.apiCode = apiCode;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    public void setEventType(DataEventTypeEnum eventType) {
        this.eventType = eventType;
    }
}
